import request from '@/utils/request.js'

const baseUrl = '/admin/core/userInfo';
export default {
    searchUser(pageNum, pageSize, keyWords) {
        return request({
            url: `${baseUrl}/search/${pageNum}/${pageSize}`,
            method: 'post',
            data: keyWords
        })
    },

    lockUser(id, status) {
        return request({
            url: `${baseUrl}/lock/${id}/${status}`,
            method: 'put',
        })
    },

    userLoginRecord(id) {
        return request({
            url: `${baseUrl}/userLoginRecord/${id}`,
            method: 'get',
        })
    }
}